package dailearn.feign.producer;

import dailearn.feign.config.Configuration1;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

/**
 *
 * @author daify
 * @date 2019-07-03 14:09
 **/
@FeignClient(value = "base-producer",configuration = Configuration1.class)
public interface ClientService {

    /**
     * 测试的服务获取
     * @return
     */
    @RequestLine("GET getService")
    String getService();

    /**
     * 用来测试超时的请求
     * @param time
     * @return
     */
    @RequestLine("POST testParams")
    String testParams(Long time);
}
